package com.venn.pvuv;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapOutputCollector;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * Created by venn on 5/22/2018.
 */
public class UserViewDemoMap extends Mapper<LongWritable, Text, Text, Text> {

    private Text keyText = new Text();
    private Text valueText = new Text();

    public void map(LongWritable key, Text value, MapOutputCollector.Context context) throws IOException, InterruptedException {

        if (value.getLength() > 0) {
            // one line data

        }
    }
}